// by Randy
function FindProxyForURL(url, host) {
	// Google 
	if (shExpMatch(url, '*.google.com/*')) return 'DIRECT';
	// Portal Site
	if (shExpMatch(url, '*.qq.com/*')) return 'DIRECT';
	if (shExpMatch(url, '*.163.com/*')) return 'DIRECT';
	if (shExpMatch(url, '*.sohu.com/*')) return 'DIRECT';
	if (shExpMatch(url, '*.sina.com.cn/*')) return 'DIRECT';
	// Shopping
	if (shExpMatch(url, '*.taobao.com/*')) return 'DIRECT';
	if (shExpMatch(url, '*.360buy.com/*')) return 'DIRECT';
	// SNS
  if (shExpMatch(url, '*.weibo.com/*')) return 'DIRECT';
	if (shExpMatch(url, '*.renren.com/*')) return 'DIRECT';
	if (shExpMatch(url, '*.douban.com/*')) return 'DIRECT';
  if (shExpMatch(url, '*.diandian.com/*')) return 'DIRECT';  
	// Blog
	if (shExpMatch(url, '*.cnblogs.com/*')) return 'DIRECT';	
  if (shExpMatch(url, '*.blogjava.com/*')) return 'DIRECT';  
	// cernet
	if (shExpMatch(url, '*.edu.cn/*')) return 'DIRECT';
	// video
	if (shExpMatch(url, '*.youku.com/*')) return 'DIRECT';
	if (shExpMatch(url, '*.tudou.com/*')) return 'DIRECT';	
	// Linux
	if (shExpMatch(url, '*.chinaunix.net/*')) return 'DIRECT';
	// fuck gfw
	if (shExpMatch(url, '*.youtube.com/*'))  return 'DIRECT';
	if (shExpMatch(url, '*.twitter.com/*')) return 'PROXY 127.0.0.1:7070';
	if (shExpMatch(url, '*.facebook.com/*')) return 'PROXY 127.0.0.1:7070';	
	// use sogou proxy
	return 'PROXY 127.0.0.1:8081';
}